package spe.model.spem;

import java.beans.PropertyChangeEvent;
import java.util.Date;


public class PlanningDataImpl extends SPEMElementImpl implements PlanningData 
{
	private Date startDate;
	private Date finishDate;
	private int rank;
	private String timeUnit;
	private double duration;
	
	public PlanningDataImpl()
	{
		startDate = new Date();
		finishDate = new Date();
		rank = 0;
		duration = 0.0;
		timeUnit = "hours";
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}

	public int getRank() {
		return rank;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public double getDuration() {
		return duration;
	}

	public void setDuration(double duration) 
	{
		this.duration = duration;
	}

	@Override
	public void initialize() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Date getFinishedDate() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setFinishedDate(Date fd) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getTimeUnit() 
	{
		return timeUnit;
	}

	@Override
	public void setTimeUnit(String tUnit) 
	{
		this.timeUnit = tUnit;
	}

	@Override
	public void propertyChange(PropertyChangeEvent evt) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public String getElementId() {
		// TODO Auto-generated method stub
		return null;
	}				
}
